import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 获取小程序表单数据
  getCheckTplData: {
    url: '/web/v1/common_check/check_tpl/first_form_list',
    method: 'post'
  },
  // 获取自定义报表详情
  getCustomTableDetail: {
    url: '/web/v1/common_check/custom_report/detail',
    method: 'get'
  },
  // 自定义报表-检查记录详情
  getCheckRecordDetail: {
    url: '/web/v1/common_check/check_record/detail_list',
    method: 'get'
  },
  // 自定义报表-列表-删除
  deleteCheckRecord: {
    url: '/api/v1/common_check/check_record/delete',
    method: 'delete'
  }
}

export default buildService(settings)
